<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>易控-帮助文档编辑-登录</title>
    <script src="/static/js/jquery/jquery.js"></script>
    <script>
        $(function(){
            $("#submit").click(function(){
                var btn = $(this);
                var form = $("#form");
                var msg = $("#msg");
                btn.attr("disabled",true);
                var data = form.serializeArray();
                $.post(form.attr("action"),data,function(ret){
                    btn.attr("disabled",false);
                    if(ret.suc)
                    {
                        msg.text("登录成功");
                        location.href="/helpcenter/edit_help_list";
                    }
                    else
                    {
                        msg.text("登录失败");
                    }
                },"json");
            });
        });
    </script>
</head>
<body>
<form action="/helpcenter/login" onsubmit="return false;" id="form" method="post">
    用户名：<input name="uname"/>
    密码：<input name="pwd" type="password"/>
    <button id="submit">登录</button>
    <p style="color:red;" id="msg"></p>
</form>
</body>
</html>